/**
 * Bestpay.com.cn Inc.
 * Copyright (c) 2011-2019 All Rights Reserved.
 */
package com.suxiaoxiao.springbootlearn.designpattern.strategypattern.duck;

import com.suxiaoxiao.springbootlearn.designpattern.strategypattern.Duck;
import com.suxiaoxiao.springbootlearn.designpattern.strategypattern.behaviorimpl.fly.FlyWithWings;
import com.suxiaoxiao.springbootlearn.designpattern.strategypattern.behaviorimpl.quack.Quack;

/**
 * 绿头鸭
 *
 * @author zhaorongzhang
 * @version MallardDuck.java, v 0.1 2019/12/28 3:13 下午 zhaorongzhang Exp $$
 */
public class MallardDuck extends Duck {

    public MallardDuck() {
        quackBehavior =  new Quack();
        flyBehavior = new FlyWithWings();
    }

    @Override
    public void display() {
        System.out.println("I'm a real Mallard Duck!");
    }

}